<?php /* Smarty version 2.6.16, created on 2012-09-15 12:48:44
         compiled from cashier.tpl */ ?>
<div id="paging">
	<div align="right">
		<?php if ($this->_tpl_vars['is_coach'] == '0'): ?>
		<!--label>Become a Coach :</label> <input type="radio" name="user_type" value="1" onclick="coach_game()" /-->
		<a class="button" href="coach_game_update.php?profile=Y"><span>Become a Coach</span></a>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['is_partner'] == '0'): ?>
		<a class="button" href="training_partner_game_update.php?profile=Y">Become Training Partner</a>
		<!--label>Become a Training Partner :</label> <input type="radio" name="user_type" value="3" onclick="tp_game()"/-->
		<?php endif; ?> 
	</div>
	<div class="content">	
		
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'user_tabs.tpl', 'smarty_include_vars' => array('active_tab' => 'cashier')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
				
		<div class="clear"></div>
		<div class="tabular-content"> 
			<div class="total-message"><strong>Total Points : <?php echo $this->_tpl_vars['totalPoints']; ?>
</strong>&nbsp;&nbsp;</div> 
			<div class="tab_sub">
            	<ul>
					<li><a id="cashierPanel" href="javascript:void(0)" >Deposit Points</a></li>
                	<li><a id="historyPanel" href="javascript:void(0)" class="active" >Transaction History</a></li>
                </ul>
			</div>
			<?php echo '
			<script>
				jQuery(function () {
						//("div.tabs > div:gt(0)").hide();
						jQuery("div.tab_sub ul a:not(:first)").addClass(\'active\');

						jQuery(\'div.tab_sub ul a\').click(function () {
							jQuery(\'div.tab_sub ul a\').addClass(\'active\');
							//var newDiv = "div.tab_sub > div" + jQuery(this).attr(\'href\');
							
							jQuery(this).removeClass(\'active\');
							
							thePanel=jQuery("#points-panel");
							jQuery.ajax({
								type:	"POST",
								url:	"cashier_panel.php",
								data:	{cashierAction:jQuery(this).attr(\'id\')},
								success:	function( jqXHR, status) {
											result = jQuery(jqXHR);
											thePanel.html(result);
										}
							});
						  });
						  
						return false;
					});
				</script>
			'; ?>

			<div class="clear"></div>
			<div>
				<div class="profile-list">
							<table id="points-presentation-layer">
								<tr>
									<td>
										<p>
											Select an points amount below to deposit. Please ensure you will return to the NoobSkool success page for your deposit to be processed properly.
										</p>
										<br/>
										<p>
										NoobSkool legal name will display as XXXXXX once you get on PayPal. You Do not need a PayPal account to make a deposit. PayPal accepts direct credit/debit card payments. 
										</p>
										<br/>
									</td>
									<td rowspan="2" id="paypal-logo">
										<h2>100% Secure</h2>
										<div>
											<img src="./images/paypal-logo.png" />
											<br/>
											<img src="./images/cards.png" />
										</div>
									</td>
								</tr>
								<tr>
									<td id="points-panel">
										
										<?php 
											$action = $this->get_template_vars('cashierAction');
											if ($action == 'cashierPanel') {
												include("cashier_buy_panel.php");
											} elseif ($action == 'historyPanel') {
												$numberOfTransactions = $this->get_template_vars('numberOfTransactions');
												include("cashier_history_panel.php");
											}
										 ?>
										<?php if (isset ( $this->_tpl_vars['tx_status'] ) && isset ( $this->_tpl_vars['tx_msg'] )): ?>
											<div 
												<?php if ($this->_tpl_vars['tx_status'] == '1'): ?>
													id="transaction_success"> 
												<?php else: ?>
													id="transaction_cancelled"> 
												<?php endif; ?>
												<?php echo $this->_tpl_vars['tx_msg']; ?>

											</div>
										<?php endif; ?>
									</td>
								</tr>
							</table>						
					</div>
				</div>
				<div class="clear"></div>
		</div>
   </div>
 </div>     